﻿@model BanDTBLL.san_pham

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>san_pham</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.ma)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ma)
            @Html.ValidationMessageFor(model => model.ma)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.maLoaiSP, "loai_san_pham")
        </div>
        <div class="editor-field">
            @Html.DropDownList("maLoaiSP", String.Empty)
            @Html.ValidationMessageFor(model => model.maLoaiSP)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ten)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ten)
            @Html.ValidationMessageFor(model => model.ten)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.donGia)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.donGia)
            @Html.ValidationMessageFor(model => model.donGia)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.moTaTomTat)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.moTaTomTat)
            @Html.ValidationMessageFor(model => model.moTaTomTat)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.moTaChiTiet)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.moTaChiTiet)
            @Html.ValidationMessageFor(model => model.moTaChiTiet)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.trangThai, "trang_thai_sp")
        </div>
        <div class="editor-field">
            @Html.DropDownList("trangThai", String.Empty)
            @Html.ValidationMessageFor(model => model.trangThai)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.hinh)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.hinh)
            @Html.ValidationMessageFor(model => model.hinh)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.may_anh)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.may_anh)
            @Html.ValidationMessageFor(model => model.may_anh)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.nghe_nhac)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.nghe_nhac)
            @Html.ValidationMessageFor(model => model.nghe_nhac)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.he_dieu_hanh)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.he_dieu_hanh)
            @Html.ValidationMessageFor(model => model.he_dieu_hanh)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.cam_ung)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.cam_ung)
            @Html.ValidationMessageFor(model => model.cam_ung)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.wifi)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.wifi)
            @Html.ValidationMessageFor(model => model.wifi)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.bluetooth)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.bluetooth)
            @Html.ValidationMessageFor(model => model.bluetooth)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.kich_thuoc)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.kich_thuoc)
            @Html.ValidationMessageFor(model => model.kich_thuoc)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.danh_ba)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.danh_ba)
            @Html.ValidationMessageFor(model => model.danh_ba)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ngon_ngu)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ngon_ngu)
            @Html.ValidationMessageFor(model => model.ngon_ngu)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dung_luong_pin)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dung_luong_pin)
            @Html.ValidationMessageFor(model => model.dung_luong_pin)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
